package picture;

public class Painter {
	public String name;

	public void paint(Shape s) {
		System.out.println("这个图形是" + s.getName());
		double a = s.calcArea();
		double b = s.calcPremter();
		System.out.println("这个图形的周长是" + b + ",面积是" + a);
	}
}
